#include<iostream>
#include<string>
#include<vector>
using namespace std;
//高精度减法保证大减小
//保证正数
vector<int> add(vector<int>& A, vector<int>& B)
{
    //a:98732       b:3278
    //A:23789       B:7823
    //C:010201->输出：102010
    vector<int> C;
    int t = 0;  //关键进位
    for (int i = 0; i < A.size() || i<B.size(); i++)       //有位都运算
    {
        if (i < A.size())  t += A[i];    //有位才能加
        if (i < B.size())  t += B[i];
        C.push_back(t % 10);
        t /= 10;
    }
    //如果还有进位,0除外
    if (t) C.push_back(t);
    return C;
}
//test：98732  3278
int main()
{
    string a, b;
    cin >> a >> b;
    //大整数这样存储
    vector<int> A, B;        //a:98732       b:3278
    for (int i = a.size()-1; i >= 0; i--) A.push_back(a[i] - '0'); //23789   方便我从个位开始计算
    for (int i = b.size()-1; i >= 0; i--) B.push_back(b[i] - '0'); //7823    方便我从个位开始计算
    vector<int> ans = add(A, B);   //910201
    //倒着打印
    for (int i = ans.size()-1; i >= 0; i--) cout << ans[i];
    return 0;
}


